Rails.application.routes.draw do
  get 'home/index'

  # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
  devise_for :users, path: 'user'

  namespace 'admin' do
    root to: 'home#index'
    resources 'articles', except: ['show']
    resources 'nodes'
    resources 'tags'
    resources 'comments'#, only: ['destroy']
    resources 'media'
    resources 'users'
  end

  # resources '/:item_type/:pretty_link'


  # Error
  get '404', to: 'errors#error_404'
end
